﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PopShops.Entities
{
    public class Brand
    {
        #region Public Properties

        [XmlAttribute("id")]
        public int BrandID { get; set; }
        [XmlAttribute("product_count")]
        public long ProductCount { get; set; }
        [XmlAttribute("name")]
        public string Name { get; set; }

        #endregion

        #region Ctor

        public Brand()
        { }

        public Brand(int id, string name, long product_count)
        {
            this.BrandID = id;
            this.Name = name;
            this.ProductCount = product_count;
        }

        #endregion
    }

    [XmlRoot("brands")]
    public class Brands
    {
        public Brands()
        { }

        [XmlElement("brand")]
        public List<Brand> BrandCollection { get; set; }
    }
}
